package cn.tedu.spring.eg2;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @Author: Miyako
 * @Date: 2024-08-02-15:55
 * @Description:
 */
public class TestMapper {
    public static void main(String[] args) {
       ApplicationContext annotationConfigApplicationContext = new AnnotationConfigApplicationContext("cn.tedu.spring.eg2");
//      Mapper commentMapper = annotationConfigApplicationContext.getBean("B",Mapper.class);
        CommentMapper bean = annotationConfigApplicationContext.getBean(CommentMapper.class);
        System.out.println(bean);
    }
}
